import request from '@/utils/request'

// 信息调研管理列表查询
export function researchTemplateList (params) {
  return request({
    url: '/tuoApi/tuoApi/researchTemplate/list',
    method: 'get',
    params
  })
}

// ID查询详情未提交
export function getByContentId (id) {
  return request({
    url: `/tuoApi/tuoApi/researchTemplateArea/getByContentId/${id}`,
    method: 'get'
  })
}

// ID查询详情已提交
export function getByAreaId (params) {
  return request({
    url: `/tuoApi/tuoApi/researchTemplateArea/getByAreaId`,
    method: 'get',
    params
  })
}

// 编辑提交
export function researchTemplateAreaEdit (data) {
  return request({
    url: `/tuoApi/tuoApi/researchTemplateArea/edit`,
    method: 'post',
    data
  })
}
